﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DatabaseManagement.DataObjects.Interfaces;

namespace DatabaseManagement.DataObjects
{
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
    public class Table : IDataObject
    {
        [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string Name { get; set; }

        [System.Xml.Serialization.XmlElementAttribute("Columns", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public List<Column> ColColumns { get; set; }

        //TODO: PENDIENTE DE IMPLEMENTACIÓN
        //[System.Xml.Serialization.XmlElementAttribute("Columns", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        //public int ObjectId { get; set; }

        /// <summary>
        /// Dato lógico para programación, especifica que esta tabla es maestra.
        /// </summary>
        [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public Boolean IsMaster { get; set; }


        public Table()
        {
            ColColumns = new List<Column>();
        }
    }
}
